<template>
    <div class="main">
        <!-- <div class="left"  @click="jumpTo()">
            
        </div> -->
        <div class="right">
            <div class="title" >{{itemData.title}}</div>
            <div class="content">{{itemData.content}}</div>
			<span class="check" @click="jumpTo()">查看更多<i class="el-icon-arrow-right"></i></span>
            <div class="date"><i class="el-icon-time"></i><div class="date_font">{{itemData.date}}</div></div>
        </div>
    </div>
</template>

<script>
export default {
    props:{
        itemData:Object
    },
    data(){
        return{
            
        }
    },
    methods:{
        jumpTo(){
            sessionStorage.setItem('textcontent',JSON.stringify(this.itemData))
            this.$router.push('/artical')
        }
    },
    mounted(){
        // console.log(this.itemData);
    }
    
    
}
</script>
<style scoped>
.main{
    width: 100%;
    margin-top: 35px;
    display: flex;
    flex-direction: row;
    border-bottom: dashed 1px rgba(187,187,187,1); 
    padding-bottom: 15px;

}
.left{
    width: 244px;
    height: 140px;
    background-color: black;
}
.left:hover{
    cursor: pointer;
}
.right{
    display: flex;
    flex-direction: column;
    margin-left: 24px;
    text-align: left;
    width: 656px;
}
.title{
    font-size: 20px;
    font-family:Noto Sans SC;
    font-weight: 700;
    text-align: left;
    color: #333333;
    max-height:30px;
    overflow: hidden;
    transition-duration: 0.4s;
}
.check:hover{
    color: #33AAFF;
    cursor: pointer;
}
.content{
    margin-top: 18px;
    font-size: 25px;
    font-family: Noto Sans SC;
    font-weight: 400;
    text-align: left;
    color: #999999;
    overflow: hidden;
    max-height:80px;
}
.date{
    width: 90px;
    height: 20px;
    margin-top: 30px;
    display: flex;
    flex-direction: row;
}
.date_font{
    margin-left: 5px;
    font-size: 14px;
    font-family: Noto Sans SC;
    font-weight: 400;
    text-align: left;
    color: #bbbbbb;
    position: relative;
    top: -5px;
}
.check{
	margin-left: 540px;
	font-size: 20px;
}
</style>